From 1c7d10e63afbccd4c55938e00c25eb749ffcfce8 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 25 Jul 2005 20:33:41 +0000 Subject: [PATCH] Fix cross-compile builds by using NM macro instead of nm binary directly. --- xen/Makefile | 2 +- xen/arch/x86/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/Makefile b/xen/Makefile index 6ff01d0d30..9a49ca31a4 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -141,4 +141,4 @@ cscope: $(all_sources) > cscope.files cscope -k -b -q MAP: - nm $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map + $(NM) $(TARGET) | grep -v '\(compiled\)\|\(\.o$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | sort > System.map diff --git a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile index fe8b79c493..251eb8894b 100644 --- a/xen/arch/x86/Makefile +++ b/xen/arch/x86/Makefile @@ -37,11 +37,11 @@ $(CURDIR)/arch.o: $(OBJS) $(TARGET)-syms: boot/$(TARGET_SUBARCH).o $(ALL_OBJS) $(TARGET_SUBARCH)/xen.lds $(LD) $(LDFLAGS) -T $(TARGET_SUBARCH)/xen.lds -N \ boot/$(TARGET_SUBARCH).o $(ALL_OBJS) -o $@ - nm -n $@ | $(BASEDIR)/tools/symbols >$(BASEDIR)/xen-syms.S + $(NM) -n $@ | $(BASEDIR)/tools/symbols >$(BASEDIR)/xen-syms.S $(MAKE) $(BASEDIR)/xen-syms.o $(LD) $(LDFLAGS) -T $(TARGET_SUBARCH)/xen.lds -N \ boot/$(TARGET_SUBARCH).o $(ALL_OBJS) $(BASEDIR)/xen-syms.o -o $@ - nm -n $@ | $(BASEDIR)/tools/symbols >$(BASEDIR)/xen-syms.S + $(NM) -n $@ | $(BASEDIR)/tools/symbols >$(BASEDIR)/xen-syms.S $(MAKE) $(BASEDIR)/xen-syms.o $(LD) $(LDFLAGS) -T $(TARGET_SUBARCH)/xen.lds -N \ boot/$(TARGET_SUBARCH).o $(ALL_OBJS) $(BASEDIR)/xen-syms.o -o $@ -- 2.30.2